<script lang="ts" setup>
import { RouterView } from 'vue-router'
import 'ant-design-vue/es/message/style/css'
import 'ant-design-vue/es/modal/style/css'
import 'ant-design-vue/es/notification/style/css'

import { useLayoutStore } from '@/stores/layout'
import { storeToRefs } from 'pinia'

const layoutStore = useLayoutStore()
const { sidebarState } = storeToRefs(layoutStore)
</script>

<template>
  <a-config-provider :locale="sidebarState.locale">
    <RouterView />
  </a-config-provider>
</template>

<style scoped></style>
